﻿using System.ComponentModel.DataAnnotations;

namespace Step4.Unit8.Modules
{
    /// <summary>
    /// 注册视图模型
    /// </summary>
    public class RegisterViewModel
    {
        [Display(Name ="用户名")]
        [Required(ErrorMessage ="请输入用户名")]
        public string? UserName { get; set; }


        [Display(Name ="密码")]
        [Required(ErrorMessage ="请输入密码")]
        public string? Pwd { get; set; }

        [Display(Name ="邮箱")]
        [Required(ErrorMessage ="请输入邮箱")]
        [EmailAddress(ErrorMessage ="邮箱格式不正确")]
        public string? Email { get; set; }
    }
}
